package demo_4_exception;

public class excepttion {
	public static void main(String[] args) throws ArrayIndexOutOfBoundsException {
		try {
			int[] a=new int[5];
			for (int i = 0; i < 7; i++) {
				a[i]=1;

			}
		} catch (ArrayIndexOutOfBoundsException e) {
			// TODO: handle exception
//			e.printStackTrace();
			System.out.println(e.toString());


		}
		finally{
			System.out.println("over");


		}
	}
}
